import request from '@/utils/request'

// 省
export function getAllProvinces () {
  return request({
    url: '/common/city/getAllProvinces',
    method: 'GET',
    isLoading: false
  })
}

// 市区
export function getByParentIds (data) {
  return request({
    url: '/common/city/getByParentIds',
    method: 'GET',
    data,
    isLoading: false
  })
}

// 地址列表
export function frontList (data) {
  return request({
    url: '/front/receiveAddress/frontList',
    method: 'GET',
    data
  })
}


//编辑
export function save (data) {
  return request({
    url: '/front/receiveAddress/save',
    method: 'POST',
    data
  })
}

// 删除
export function remove (data) {
  return request({
    url: '/front/receiveAddress/remove',
    method: 'POST',
    data
  })
}

// 详情
export function getDetail (data) {
  return request({
    url: '/front/receiveAddress/getDetail',
    method: 'GET',
    data
  })
}





